package cn.sczhyt.modules.szhy.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.sczhyt.modules.szhy.dao.UserGroupDao;
import cn.sczhyt.modules.szhy.entity.UserGroupEntity;
import cn.sczhyt.modules.szhy.service.UserGroupService;


@Service("userGroupService")
public class UserGroupServiceImpl extends ServiceImpl<UserGroupDao, UserGroupEntity> implements UserGroupService {

    @Autowired
    private UserGroupDao userGroupDao;

    @Override
    public IPage<UserGroupEntity> findList(Integer page, Integer limit, UserGroupEntity userGroupEntity) {
        Page<UserGroupEntity> page1 = new Page<>(page,limit);
        IPage<UserGroupEntity>  iPage= userGroupDao.findList(page1,userGroupEntity);
        return iPage;
    }
}